package org.example.controller;

import org.example.model.po.CustomInfo;
import org.example.service.CustomInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 聚合支付平台-C端客户信息表(TCustomInfo)表控制层
 *
 * @author makejava
 * @since 2020-05-06 10:15:04
 */
@RestController
@RequestMapping("customInfo")
public class CustomInfoController {
    /**
     * 服务对象
     */
    @Resource
    private CustomInfoService customInfoService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public CustomInfo selectOne(Long id) {
        return this.customInfoService.queryById(id);
    }

}